home *** CD-ROM | disk | FTP | other *** search
/ Amiga Plus 1995 #5 & #6 / Amiga Plus CD - 1995 - No. 5 and 6.iso / pd / netz / amyboard / xboard-3.3.pl0 / frontend.h < prev    next >
C/C++ Source or Header  |  1995-08-12  |  5KB  |  117 lines

  1. /*
  2.  * frontend.h -- Interface exported by all XBoard front ends
  3.  * $Id: frontend.h,v 1.16 1995/07/19 03:20:16 mann Exp $
  4.  *
  5.  * Copyright 1991 by Digital Equipment Corporation, Maynard, Massachusetts.
  6.  * Enhancements Copyright 1992-95 Free Software Foundation, Inc.
  7.  *
  8.  * The following terms apply to Digital Equipment Corporation's copyright
  9.  * interest in XBoard:
  10.  * ------------------------------------------------------------------------
  11.  * All Rights Reserved
  12.  *
  13.  * Permission to use, copy, modify, and distribute this software and its
  14.  * documentation for any purpose and without fee is hereby granted,
  15.  * provided that the above copyright notice appear in all copies and that
  16.  * both that copyright notice and this permission notice appear in
  17.  * supporting documentation, and that the name of Digital not be
  18.  * used in advertising or publicity pertaining to distribution of the
  19.  * software without specific, written prior permission.
  20.  *
  21.  * DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
  22.  * ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
  23.  * DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
  24.  * ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
  25.  * WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
  26.  * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
  27.  * SOFTWARE.
  28.  * ------------------------------------------------------------------------
  29.  *
  30.  * The following terms apply to the enhanced version of XBoard distributed
  31.  * by the Free Software Foundation:
  32.  * ------------------------------------------------------------------------
  33.  * This program is free software; you can redistribute it and/or modify
  34.  * it under the terms of the GNU General Public License as published by
  35.  * the Free Software Foundation; either version 2 of the License, or
  36.  * (at your option) any later version.
  37.  *
  38.  * This program is distributed in the hope that it will be useful,
  39.  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  40.  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  41.  * GNU General Public License for more details.
  42.  *
  43.  * You should have received a copy of the GNU General Public License
  44.  * along with this program; if not, write to the Free Software
  45.  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  46.  * ------------------------------------------------------------------------
  47.  */
  48.  
  49. #include <stdio.h>
  50.  
  51. void ModeHighlight P((void));
  52. void SetICSMode P((void));
  53. void SetGNUMode P((void));
  54. void SetNCPMode P((void));
  55. void SetCmailMode P((void));
  56. void DisplayTitle P((String title));
  57. void DisplayMessage P((String message, String extMessage));
  58. void DisplayError P((String message, int error));
  59. void DisplayFatalError P((String message, int error, int status));
  60. void DisplayInformation P((String message));
  61. void DrawPosition P((int fullRedraw, Board board));
  62. void ResetFrontEnd P((void));
  63. void CommentPopUp P((String title, String comment));
  64. void CommentPopDown P((void));
  65. void EditCommentPopUp P((int index, String title, String text));
  66.  
  67. void RingBell P((void));
  68. void EchoOn P((void));
  69. void EchoOff P((void));
  70. void Raw P((void));
  71.  
  72. char *UserName P((void));
  73. char *HostName P((void));
  74.  
  75. int ClockTimerRunning P((void));
  76. int StopClockTimer P((void));
  77. void StartClockTimer P((long millisec));
  78. void DisplayWhiteClock P((long timeRemaining, int highlight));
  79. void DisplayBlackClock P((long timeRemaining, int highlight));
  80.  
  81. int LoadGameTimerRunning P((void));
  82. int StopLoadGameTimer P((void));
  83. void StartLoadGameTimer P((long millisec));
  84. void AutoSaveGame P((void));
  85.  
  86. typedef VOIDSTAR ProcRef;
  87. #define NoProc ((ProcRef) 0)
  88. int StartChildProcess P((char *cmdLine, ProcRef *pr));
  89. void DestroyChildProcess P((ProcRef pr));
  90. void InterruptChildProcess P((ProcRef pr));
  91.  
  92. int OpenTelnet P((char *host, char *port, ProcRef *pr));
  93. int OpenTCP P((char *host, char *port, ProcRef *pr));
  94. int OpenCommPort P((char *name, ProcRef *pr));
  95. int OpenLoopback P((ProcRef *pr));
  96. int OpenRcmd P((char *host, char *user, char *cmd, ProcRef *pr));
  97.  
  98. typedef VOIDSTAR InputSourceRef;
  99. typedef void (*InputCallback) P((InputSourceRef isr, char *buf, int count, int error));
  100. InputSourceRef AddInputSource P((ProcRef pr, int lineByLine, InputCallback func));
  101. void RemoveInputSource P((InputSourceRef isr));
  102.  
  103. int OutputToProcess P((ProcRef pr, char *message, int count, int *outError));
  104.  
  105. void CmailSigHandlerCallBack P((InputSourceRef isr, char *buf, int count, int error));
  106.  
  107. extern ProcRef cmailPR;
  108.  
  109. void GameListPopUp P((FILE *fp, char *filename));
  110. void GameListPopDown P((void));
  111. void GameListHighlight P((int index));
  112. void GameListDestroy P((void));
  113.  
  114. void EditTagsPopUp P((char *tags));
  115. void TagsPopUp P((char *tags, char *msg));
  116. void TagsPopDown P((void));
  117.